package org.qufenqi.api.service;

import com.alipay.api.AlipayApiException;
import org.qufenqi.api.common.CommonResponse;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public interface AliPayService {

    //支付调用
    String payForOrder(String orderid,double money);

    //异步回调
    void notifyUrl(HttpServletResponse response, HttpServletRequest request) throws AlipayApiException, UnsupportedEncodingException;

    //同步回调
    String returnUrl(HttpServletRequest request)throws IOException, AlipayApiException;
}
